<?php
$id=$_POST['cid'];
if($id!='')
{
	include 'conn.php';
	$conn=mysql_connect($host,$user, $passwd) or die("Database connect fail".mysql_error());
	mysql_select_db("$database",$conn) or die("Database Access Failure ".mysql_error());
	mysql_query("set names utf8");
	$sql="select `classify_id`,`type` from `classify` where `fid`='$id' order by `classify_id` asc";
	$query=mysql_query($sql);
	while($row=mysql_fetch_object($query))//逐个获取二维数组的每一条记录
	{	
		echo "<option value=\"".$row->classify_id."\" >".$row->type."</option>";
			
	}
}
else 
{
	echo '';
}
?>